import { createApp } from "vue";
import App from "./App.vue";
import { createPinia } from "pinia";
import piniaPluginPersist from "@/store/pinia-plugin-persist";
import router from "@/router";
import { loadRoutes } from "@/router/helper";

const app = createApp(App);
useIcon(app);
useEditor();
const pinia = createPinia();
pinia.use(piniaPluginPersist);
app.use(pinia);
loadRoutes();
app.use(router);
app.mount("#app");

